package com.cn.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouterVo {
    private String path; //路由地址
    private String component; //组件
    private boolean alwaysShow;  //是否显示
    private String name;    //路由名称
    private Meta meta; //路由元信息

    @Data
    @AllArgsConstructor
    public class Meta {
        private String title;    //路由标题
        private String icon;    //路由图标
        private Object[] roles; //角色列表
    }

    private List<RouterVo> children=new ArrayList<RouterVo>();
}
